import { createRouter, createWebHistory } from 'vue-router'

import Home from "../components/Home.vue"
import FullSurvey from "../components/FullSurvey.vue"
import SimpleSurvey from "../components/SimpleSurvey.vue"
import Creator from "../components/Creator.vue"
import PDFGenerator from "../components/PDFGenerator.vue"
import Dashboard from "../components/Dashboard.vue"
import DashboardTabulator from "../components/DashboardTabulator.vue"
import DashboardDatatables from "../components/DashboardDatatables.vue"


const router = createRouter({
	history: createWebHistory(import.meta.env.BASE_URL),
	routes: [
		// { path: "/", component: Home },
		{ path: '/', component: Home },
		{ path: '/fullSurvey', component: FullSurvey },
		{ path: '/simpleSurvey', component: SimpleSurvey },
		{ path: '/creator', component: Creator },
		{ path: '/exportpdf', component: PDFGenerator },
		{ path: '/analytics', component: Dashboard },
		{ path: '/analyticstabulator', component: DashboardTabulator },
		{ path: '/analyticsdatatables', component: DashboardDatatables },
	],
})

export default router
